package service

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"user/handler/request"
)

func Login(c *gin.Context) {
	var form request.Login
	if err := c.ShouldBind(&form); err != nil {
		c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
		return
	}
	c.String(http.StatusOK, "Welcome Gin Server")
}
